<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<h1>Search results</h1>
<div class="list-group">
    <c:choose>
        <c:when test="${f:length(wars) gt 0}">
            <c:forEach var="item" items="${wars}">
                <jsp:useBean id="versionDate" class="java.util.Date" />
                <jsp:setProperty name="versionDate" property="time" value="${item.timeStamp}" />
                <a class="list-group-item" href="${pageContext.request.contextPath}/war/browse/${item.fileName}/${item.timeStamp}">${item.fileName} <fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${versionDate}" dateStyle="long"/></a>
            </c:forEach>
        </c:when>
        <c:otherwise>
            No war atrifacts found.
        </c:otherwise>
    </c:choose>
</div>
